# -*- coding: utf-8 -*-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<title>${c.name} - Edit Preview - Wikipedia Revision Analysis</title> 
<link rel="StyleSheet" href="/main.css" type="text/css" media="screen" />
<link rel="StyleSheet" href="/shared.css" type="text/css" media="screen" />
<script type="text/javascript">           
function ifEnter(field,event) {
var theCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
if (theCode == 13){
document.forms[1].submit();
return false;
} 
else
return true;
}
${c.j_content}
</script>
<script type="text/javascript" src="/color.js"></script>
</head>

<body class="mediawiki ns-0 ltr">
<div id="globalWrapper"><div id="column-content">

<!-- Title -->
<div id="content">
<h1 class="firstHeading">Wikipedia Revision Analysis</h1>
<div id="contentSub"></div>


<!-- Bar and select -->
<!--<span style="float:left;">Edit meter:</span>-->

<form action="" style="float:right; font-size:85%; background-color:#F5F5F5; border:1px solid #AAA; margin:0px 0px; padding:0px .5em;"><div>
  <label id='agelabel'>Persistant / New</label>
  <input type="radio" id='age' name="coloring" onclick="switchColor('age')" />
  <label id='controlabel' style="padding-left:1em;">Consistency / Controversy</label>
  <input type="radio" id='contro' name="coloring" onclick="switchColor('contro')" />
  <label id='greylabel' style="padding-left:1em;">Added / Removed</label>
  <input type="radio" id='grey' name="coloring" onclick="switchColor('grey')" />
</div></form>

<!-- <div style="clear:both;">
${c.bar}
</div> -->


<!-- Classify form -->
<br/>Text to classify: 
<form method="post" action="/edit/${c.title}"><div>
  <textarea rows="3" cols="50" name="classify" onkeypress="return ifEnter(this,event);">${c.input}</textarea>
  <input type="submit" value="Submit"/>
</div></form>
<script type="text/javascript">
 document.forms[1].classify.focus();
</script>


<!-- Main content -->
<h2>Previewing ${c.name}</h2>
<span style="font-size:90%;"><a href="http://en.wikipedia.org/wiki/${c.title}">Link to ${c.name} on Wikipedia</a></span>
<div id="contentSub2"></div>
<div id="bodyContent">

<div id="articleContent"></div>
<script type="text/javascript">
  generateContent();
</script>

</div></div>

<!-- Tabs -->
<div id="p-cactions" class="portlet">
  <h5>Views</h5>
  <div class="pBody">
    <ul>
      <li><a href="/">home</a></li>
      <li id="ca-talk"><a href="/search">search</a></li>
      <li><a href="/article/${c.title}">article</a></li>
      <li class="selected"><a href="/edit/${c.title}">edit preview</a></li>
    </ul>
  </div>
</div>

</div></div>

<!-- Footer -->
<div class="visualClear"></div><div id="footer">
	developed by <a href="mailto:marlink@gmail.com">Mark Perry</a>, 
	made a reality by collaboration with Joseph Poon, 
	released under <a href="http://www.fsf.org/licensing/licenses/info/GPLv2.html">GPLv2</a><br/>
	site powered by <a href="http://pylonshq.com/">pylons</a>,
	corpus and css from <a href="http://wikipedia.org">Wikipedia</a>
</div>

</body></html>
